<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<link type="text/css"
	href="http://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css"
	rel="stylesheet" />
<title>New Student page</title>
</head>
<body>
	<nav class="navbar navbar-inverse" role="navigation">
	<ul class="nav navbar-nav">
		<li class="active"><a
			href="${pageContext.request.contextPath}/register/list.html">Job</a></li>
	</ul>

	<ul class="nav navbar-nav navbar-right">
		<li><a href="#">Save</a></li>
		<li><a
			href="${pageContext.request.contextPath}/register/list.html">Cancel</a></li>
	</ul>
	</nav>


	<form:form method="POST" commandName="studentRegister"
		action="${pageContext.request.contextPath}/student/create.html">

		</br>
		</br>
		</br>

		<div class="panel panel-default">
			<div class="panel-heading">Personal Information</div>
			<div class="panel-body">
				<table>
					<tbody>
						<tr>
							<td>First Name:</td>
							<td><form:input path="student.firstName" /></td>
							<td><form:errors path="student.firstName"
									cssStyle="color: red;" /></td>
							<td>Last Name:</td>
							<td><form:input path="student.lastName" /></td>
							<td><form:errors path="student.lastName"
									cssStyle="color: red;" /></td>



						</tr>



						<tr>
							<td>Date of Birth: (YYYY-MM-DD)</td>
							<td><form:input path="student.dateOfBirth" /></td>
							<td><form:errors path="student.dateOfBirth"
									cssStyle="color: red;" /></td>
							<td>Gender:</td>
							<td>
								<td><form:radiobutton path="student.gender" value="Male" />Male
									<form:radiobutton path="student.gender" value="Female" />Female</td>
								<td><form:errors path="student.gender" cssClass="error" /></td>
							</td>
						</tr>
						<tr>
							<td>Email:</td>
							<td><form:input path="student.email" /></td>
							<td><form:errors path="student.email" cssStyle="color: red;" /></td>

						</tr>
					</tbody>
				</table>
			</div>
		</div>


		<div class="panel panel-default">
			<div class="panel-heading">Times Available</div>
			<div class="panel-body">
				<table>
					<tbody>
						<tr>
							<td>Sunday From:</td>
							<td><form:input path="schedule.sundayFrom" /></td>
							<td><form:errors path="schedule.sundayFrom"
									cssStyle="color: red;" /></td>
							<td>Sunday To:</td>
							<td><form:input path="schedule.sundayTo" /></td>
							<td><form:errors path="schedule.sundayTo"
									cssStyle="color: red;" /></td>

						</tr>

						<tr>
							<td>Monday From:</td>
							<td><form:input path="schedule.mondayFrom" /></td>
							<td><form:errors path="schedule.mondayFrom"
									cssStyle="color: red;" /></td>
							<td>Monday To:</td>
							<td><form:input path="schedule.mondayTo" /></td>
							<td><form:errors path="schedule.mondayTo"
									cssStyle="color: red;" /></td>

						</tr>

						<tr>
							<td>Tuesday From:</td>
							<td><form:input path="schedule.tuesdayFrom" /></td>
							<td><form:errors path="schedule.tuesdayFrom"
									cssStyle="color: red;" /></td>
							<td>Tuesday To:</td>
							<td><form:input path="schedule.tuesdayTo" /></td>
							<td><form:errors path="schedule.tuesdayTo"
									cssStyle="color: red;" /></td>

						</tr>

						<tr>
							<td>Wednesday From:</td>
							<td><form:input path="schedule.wednesdayFrom" /></td>
							<td><form:errors path="schedule.wednesdayFrom"
									cssStyle="color: red;" /></td>
							<td>Wednesday To:</td>
							<td><form:input path="schedule.wednesdayTo" /></td>
							<td><form:errors path="schedule.wednesdayTo"
									cssStyle="color: red;" /></td>

						</tr>

						<tr>
							<td>Thursday From:</td>
							<td><form:input path="schedule.thursdayFrom" /></td>
							<td><form:errors path="schedule.thursdayFrom"
									cssStyle="color: red;" /></td>
							<td>Thursday To:</td>
							<td><form:input path="schedule.thursdayTo" /></td>
							<td><form:errors path="schedule.thursdayTo"
									cssStyle="color: red;" /></td>

						</tr>

						<tr>
							<td>Friday From:</td>
							<td><form:input path="schedule.fridayFrom" /></td>
							<td><form:errors path="schedule.fridayFrom"
									cssStyle="color: red;" /></td>
							<td>Friday To:</td>
							<td><form:input path="schedule.fridayTo" /></td>
							<td><form:errors path="schedule.fridayTo"
									cssStyle="color: red;" /></td>

						</tr>

						<tr>
							<td>Saturday From:</td>
							<td><form:input path="schedule.saturdayFrom" /></td>
							<td><form:errors path="schedule.saturdayFrom"
									cssStyle="color: red;" /></td>
							<td>Saturday To:</td>
							<td><form:input path="schedule.saturdayTo" /></td>
							<td><form:errors path="schedule.saturdayTo"
									cssStyle="color: red;" /></td>

						</tr>
						</div>
						</div>
					</tbody>
				</table>
			</div>
		</div>


		<td><input type="submit" value="Create" /></td>
	</form:form>
</body>
</html>